home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Genius of Edison
/
The Genius of Edison (Version 1.0)(Softkey Multimedia)(GOE744AE-CD)(1996).ISO
/
pc
/
data
/
shared.cst
/
00047_Script_Daily Edisonian
< prev
next >
Wrap
Text File
|
1996-09-03
|
989b
|
41 lines
-- ---------------------------------------------------------------
-- Handler goEdisonianPage
on goEdisonianPage whichPage
global DEPOptionsVisible
playClickSound
set pageMarker = "dep" & whichPage
if (DEPOptionsVisible) then
hideDEPMenuOptions
end if
goFrame pageMarker
if (whichPage >= 1) then -- not for front page
playRandomDEPSound
end if
end
-- ---------------------------------------------------------------
-- Handler setNumDepPages sets the global variable numDEPPages to
-- the given value. (the number of pages in the current dep section)
on setNumDEPPages val
global numDEPPages
set numDEPPages = val
end
-- ---------------------------------------------------------------
-- Handler playRandomDEPSound plays a random sound for the daily
-- edisonian
on playRandomDEPSound
global numDEPSounds
set whichSound = random(numDEPSounds)
puppetSound ("DEMus" & whichSound & ".aif")
end